package pkg;

import pkg.xiaohong.Dog;

/**
 * @Package: pkg
 * @ClassName: pkg.test
 * @Author: x2606
 * @CreateTime: 2022/2/19 21:11
 * @Description: 包原理，测试小红和小明类
 */

public class test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        System.out.println(dog);//pkg.xiaohong.Dog@1b6d3586

        //使用已有的同名类使用包名调用
        pkg.xiaoming.Dog dog2 = new pkg.xiaoming.Dog();
        System.out.println(dog2);//pkg.xiaoming.Dog@4554617c

    }
}
